<load file="__PUBLIC__/header.html"/>
<ul class="top_title">
    <li>
        <a href="__CONTROL__/infoShow" class="menu_title_a">
            <i class="icon icon-share-alt"></i>&nbsp;返回
        </a>
    </li>
    <li>|</li>
    <li>
        <p class="menu_title">添加内容</p>
    </li>
</ul>
<form action="__METH__" method="post" name="addEssay" enctype="multipart/form-data">
    <table class="table">
        <thead>
            <tr>
                <th colspan="2">添加内容</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td align='right' width='10%'>标题：</td>
                <td>
                    <input type='text' class='input-big' name='title' value=""/>
                </td>
            </tr>
            <tr>
                <td align='right' width='10%'>所属分类：</td>
                <td>
                    <select name="lid">
                        
                            {$list}
                        
                    </select>
                </td>
            </tr>
            <tr>
                <td align='right' width='10%'>是否使用：</td>
                <td align="left">
                    <label><input type="radio" name="isshow" value="1" checked="checked" class="radio"/>&nbsp;使用</label>&nbsp;&nbsp;
                    <label><input type="radio" name="isshow" value="2" class="radio"/>&nbsp;禁止</label>
                </td>
            </tr>
            <tr>
                <td align='right' width='10%'>是否置顶：</td>
                <td align="left">
                    <label><input type="radio" name="istop" value="0" checked="checked" class="radio"/>&nbsp;否</label>&nbsp;&nbsp;
                    <label><input type="radio" name="istop" value="1" class="radio"/>&nbsp;是</label>

                </td>
            </tr>

            <tr>
                <td align='right'>发布日期</td>
                <td>
                    <input type='text' name='addtime' value="<?php echo date('Y-m-d H:i:s',time());?>"/>
                    <span class='remark'>日期格式：****-**-**  ,留空则使用当前日期</span>
                </td>
            </tr>
            <tr>
                <td align='right'>录入员</td>
                <td>
                    <input type='text' class='input-big' name='author' value="{$hd.session.ax_uname}"/>
                    <span class='remark'>留空则使用登录帐号名</span>
                </td>
            </tr>
             <tr>
                <td align='right'>链接地址</td>
                <td>
                    <input type='text' class='input-big' name='url' value=""/>
                    <span class='remark'>存放链接网址，无则留空</span>
                </td>
            </tr>
            <tr>
                <td align='right'>封面图</td>
                <td>
                    <input type='file' class='input-big' name='coverimg' />
                    <span class='remark'>存放封面图，无则留空</span>
                </td>
            </tr>
            <tr>
                <td align='right'>描述</td>
                <td>
                    <textarea name="des"></textarea>
                    <span class='remark'>存放文章描述，无则留空</span>
                </td>
            </tr>
            <tr>
                <td align='right'>内容：</td>
                <td>
                  
                <keditor name="content" content=""/>
                

                </td>
            </tr>
            <tr>
                <td colspan='2' align='center'>
                    <input type='submit' class='menu_submit' value='提交添加'/>
                </td>
            </tr>
        </tbody>
    </table>
</form>
<script>
    $('.menu_submit').click(function(){
        if($('input[name=title]').val() == ''){
            alert('标题不能为空');
            return false;
        }
        if (editor.getContent() == '') {
            alert('内容不能为空');
            return false;
        }
    });
</script>
</body>
</html>